﻿<UserControl x:Class="Flare.Controls.TilesUpdateList"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" Background="{DynamicResource ColorGreenPastel}"
             mc:Ignorable="d" MaxHeight="300" Width="280" MinHeight="50">
    <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
        <Label Content="{Binding Header, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, FallbackValue=header}" 
               FontSize="16" Margin="4" VerticalAlignment="Top" HorizontalAlignment="Left" Foreground="{DynamicResource ColorText}"/>
        <ListBox ItemsSource="{Binding UpdateItems, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Margin="8,32,8,4" 
                 VerticalAlignment="Top" DisplayMemberPath="Value" ScrollViewer.HorizontalScrollBarVisibility="Disabled" 
                 Style="{StaticResource StyleListBoxVertical}" TextBlock.FontSize="12" TextBlock.Foreground="{StaticResource DefaultTextColor}"/>
    </Grid>
</UserControl>
